<!DOCTYPE html>
<html lang="en" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>双向数据渲染学习</title>
</head>
<body>
<div id="app">
    <h1>{{message}}</h1>
    <input type="text" v-model:value="hobby.val"><br/><br/>
    <input type="text" v-model="hobby.val"><br/><br/>
    <input type="text" :value="hobby.val"><br/><br/>
    <p>你的兴趣是{{hobby.val}}</p>
</div>
<script src="vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            message: "Welcome, please enter your hobby",
            hobby: {
                val: "篮球"
            }
        }

    })
</script>
</body>
</html>